# -*- coding: UTF-8 -*-
import DataCollection

yearList = [0,1,2,3,4,5,6,7,8,9]
DataCollection.cleanFile()

#nDocentesPerYer(String orderBy) - orderBy = "NDOCENTES" (Organize by nº of teachers), orderBy = "" (Organize by year)
#return a list of tuples(year, nº teachers)
print "Number of Teacher per Year"
print DataCollection.nDocentesPerYear("NDOCENTES")
print "\n"

#nInstYear(List years, String orderBy)
#years = list of years the user pretends information
#orderBy = "NINST" (Organize by nº of institutions), orderBy = "" (Organize by year introduced on the list)
#return a list of tuples(year, nº of institutions)
print "Number of Instituitions Per Year"
print DataCollection.nInstYear(yearList, "NINST")
print "\n"

#list yearList - list of years the user pretends information
#information is organized by year and number of teachers
#Return a list of tuples(year, institution, nº of teachers)
print "Number of Teachers Per Instituition Per Year"
print DataCollection.nDocentesPerInstPerYear(yearList)

#list yearList - list of years the user pretends information
#information is organized alphabetically
#return a list of tuples(year, list_of_institutions)
print "List of Institutions per Year"
print DataCollection.listInstYear(yearList);


#list yearList - list of years the user pretends information
#information is organized by year and number of teachers
#Return a list of tuples(year, Degree, nº of teachers)
print "Number of Teachers Per Degree Per Year"
print DataCollection.nDocentesPerDegreePerYear(yearList)


#list yearList - list of years the user pretends information
#degree - degree the user pretends information
#information is organized alphabetically
#return a list of tuples(year, teacher name)
print "Degree Holder Per Year"
print DataCollection.listDegreeHolder(yearList, "DEA")

#nInstYear(List years)
#years = list of years the user pretends information
#return a list of tuples(year, nº of degree)
print "Number of Degrees Per Year"
print DataCollection.nDegreeYear(yearList)
print "\n"

#list yearList - list of years the user pretends information
#information is organized number of teachers
#Return a list of tuples(year, Institution, Degree, nº of teachers)
print "Number of Teachers Per Degree Per Institution Per Year"
print DataCollection.nDocentesPerDegreePerInstPerYear(yearList)

#list yearList - list of years the user pretends information
#information is organized by year
#Return a list of tuples(year, Institution, Degree, nº of teachers)
print "Teacher Hiring"
print DataCollection.teacherHiring("Academia Militar")

#Teacher hiring from a all institutions
#uses listInstNoWrite function to receive a list of Institutions
#uses teacherHiring to receive the calculation from each institution
#Return a list with tuples (Institution, List(Tuples(year, number)))
print "Teacher Hiring Per Inst"
print DataCollection.teacherHiringPerInst()




